SMBTAR

Section: smbtar (1)
Updated: 6/10/1994
Index Return to Main Contents
 

NAME

smbtar - shell script for backing up SMB shares directly to UNIX tape drive  

SYNOPSIS

smbtar -s server [ -p password ] [ -x service ] [ -u user ] [ -t tape ] [ -b blocksize ] [ -n filename ] [ -i ] [ -r ] [ -l ]

 

DESCRIPTION

This program is an extension to the Samba suite.

smbtar is a very small shell script on top of smbclient, which dumps SMB shares directly to tape.

 

OPTIONS

-s server
The PC that the share resides upon.

-x service

The share name on the PC to connect to. Default: backup.

-p password

The password to use to access a share. Default: none

-u user

The user id to connect as. Default: UNIX login name.

-t tape

Tape device. May be regular file or tape device. Default: Tape environmental variable; if not set, a file called tar.out.

-b blocksize

Blocking factor. Defaults to 20. See tar(1) for a fuller explanation.

-n filename

Backup only files newer than filename. Could be used (for example) on a log file to implement incremental backups. This flag should not be used with the -i flag, the results may not be sensible.

-i

Incremental mode; tar files are only backed up if they have the archive bit set. The archive bit is reset after each file is read. This flag should not be used with the -n flag, the results may not be sensible.

-r

Restore. Files are restored to the share from the tar file.

-l

Debug level. Corresponds to -d flag on smbclient(1).

 

ENVIRONMENT VARIABLES

The TAPE variable specifies the default tape device to write to. May be overidden with the -t option.

 

BUGS

The shell script has only been tested under solaris 2. It's not very portable and should probably be customized to a particular site's setup.

 

CAVEATS

Sites that are more careful about security may not like the way the script handles PC passwords. Backup and restore work on entire shares, should work on file lists.

 

VERSION

This man page is correct for version 1.9.02 of the Samba suite.

 

SEE ALSO

smbclient (8), smb.conf (8)  

DIAGNOSTICS

See diagnostics for smbclient command.

 

CREDITS

The original Samba software and related utilities were created by Andrew Tridgell (samba-bugs@anu.edu.au). Andrew is also the Keeper of the Source for this project.

Ricky Poulten (poultenr@logica.co.uk) wrote the tar extension and this man page.

See smb.conf (5) for a full list of contributors and details of how to submit bug reports, comments etc.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
ENVIRONMENT VARIABLES
BUGS
CAVEATS
VERSION
SEE ALSO
DIAGNOSTICS
CREDITS

This document was created by man2html, using the manual pages.
Time: 19:48:04 GMT, December 25, 2022